package my.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date; //不知道需不需要改，先不改

/**
 * @Author: RavenLyn
 * @Date: 2024-11-27
 *
 * 挂号排班表
 */

@Data
@TableName("registration_schedule") //映射
public class RegistrationSchedule implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("department_id")
    private Integer departmentId;

    @TableField("clinic_id")
    private Integer clinicId;

    @TableField("doctor_id")
    private Integer doctorId;

    /**
     * 医生姓名 冗余字段
     */
    @TableField("doctor_name")
    private String doctorName;

    @TableField("date")
    private Date date;

    @TableField("day_of_week")
    private Integer dayOfWeek;

    @TableField("shift")
    private Integer shift;

    @TableField("status")
    private Integer status;
}
